package com.kafka.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class BaseUtil {
	/**
	 * 获取当前时间
	 * 
	 * @return
	 */
	public static String getDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(new Date());
	}
	
	/**
	 * 转小写
	 * @param str
	 * @return
	 */
	public static String strToLower(String str){
		return str.toLowerCase();
	}
	
	public static String getUUID(){
		UUID uuid = UUID.randomUUID();
		return uuid.toString();
	}
	
	public static void main(String[] args) {
		System.out.println(strToLower("user_class"));
	}
}
